package cn.yunhe.service;


import cn.yunhe.entity.Question;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface QuestionService {


    boolean addQuestion(Question question);


    /**
     * (发布考试时执行)
     * 根据试卷要求的题目数目,知识点,随机获取多道题目ID
     * @param map
     * @return
     * Map中包含数据 int QuestionCount, List<Integer> PointId
     * 郭瀚钰
     */
    List<Question> getSeveralQuestion(Map<String,Object> map);


}
